<h1>
    <?= empty($data['Page']['id']) ? 'Nova stranica' : 'Izmena stranice' ?>
</h1>
<p>
    <?= $this->Html->link('&laquo; nazad', '/admin_pages', array('escape' => false))?>
    <? if (@$data['Page']['id']): ?>
        | <?= $this->Html->link('Obriši stranicu', '/admin_pages/delete/' . $data['Page']['id'], array(
            'confirm' => 'Da li želite da obrišete stranicu?'
        )) ?>
    <? endif ?>
</p>

<?= $this->Form->create('Page', array('url' => '/admin_pages/save')) ?>

    <?= $this->Form->hidden('id', array('value'=>@$data['Page']['id'])) ?>
    
    <p><?= $this->Form->label('menu_label', 'Naslov u Meniju:') ?>
    <?= $this->Form->text('menu_label', array('value' => @$data['Page']['menu_label'])) ?></p>
    
    <p><?= $this->Form->textarea('content', array(
        'value'  => @$data['Page']['content'], 'class'=>'ckedit full'
    )) ?></p>
    
<?= $this->Form->submit('Sačuvaj') ?>
<?= $this->Form->end() ?>